from visad.python.JPythonMethods import *
from math import *

(xstart, xend, xnum) = (0.0, 2 * pi, 100)
xstep = (xend - xstart) / (xnum - 1)
xdata = map(lambda x: xstep * x, range(0, xnum))
ydata = map(sin, xdata)
plot(ydata)
